<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>parents</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>parents</b> -   ( ) left and right parenthesis</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>(expression)  </tt>
      </dd>
      <dd>
        <tt>[...]=func(e1,e2,...)  </tt>
      </dd>
      <dd>
        <tt>[x1,x2,...]=(e1,e2,...)  </tt>
      </dd>
      <dd>
        <tt>x(i,j)  </tt>
      </dd>
      <dd>
        <tt>v(i)  </tt>
      </dd>
      <dd>
        <tt>[...]=l(i)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>x</b>
        </tt>: matrix of any  possible type</li>
      <li>
        <tt>
          <b>v</b>
        </tt>: row or column vector of any  possible type</li>
      <li>
        <tt>
          <b>l</b>
        </tt>: list variable</li>
      <li>
        <tt>
          <b>func</b>
        </tt>: any function name</li>
      <li>
        <tt>
          <b>e1,e2,...  </b>
        </tt>: any possible type expression</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Left and right parenthesis are used to</p>
    <p>
     *
    Specify evaluation order within expressions,</p>
    <p>
     *
    Form right-hand-side functions argument list. Within multiple rhs
    arguments must be separated by comma.</p>
    <p>
     *
    Select elements within vectors, matrices and lists.
    see help on extraction and insertion for more precisions</p>
    <p>
     *
    [x1,x2,...]=(e1,e2,...) is equivalent to first performing %t_1 = e1,
    %t_2 = e2, ..., and then x1 = %t_1, x2 = %t_2, ..., where the
    variables %t_i, i = 1, 2, ... are invisible to the user.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

3^(-1)
x=poly(0,"x");
//
(x+10)/2
i3=eye(3,3)
//
a=[1 2 3;4 5 6;7 8 9],a(1,3),a([1 3],:),a(:,3)
a(:,3)=[]
a(1,$)=33
a(2,[$ $-1])
a(:,$+1)=[10;11;12]
//
w=ssrand(2,2,2);ssprint(w)
ssprint(w(:,1))
ss2tf(w(:,1)) 
//
l=list(1,2,3,4)
[a,b,c,d]=l(:)
l($+1)='new'
//
v=%t([1 1 1 1 1])
//
[x,y,z]=(1,2,3)
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="colon.htm">
        <tt>
          <b>colon</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="comma.htm">
        <tt>
          <b>comma</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="brackets.htm">
        <tt>
          <b>brackets</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="list.htm">
        <tt>
          <b>list</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="extraction.htm">
        <tt>
          <b>extraction</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="insertion.htm">
        <tt>
          <b>insertion</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
